home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 21 code / Hierarchical Lists / CMyCustomListBox.h < prev    next >
Encoding:
Text File  |  1994-07-01  |  855 b   |  30 lines  |  [TEXT/MMCC]

  1. // ===========================================================================
  2. //    CMyCustomListBox.h            ©1994 Jan Bruyndonckx All rights reserved.
  3. //    v1.0 18/6/94
  4. //
  5. //    A listbox subclass containing custom data.
  6. //  The default listbox contains only string data.
  7. // ===========================================================================
  8.  
  9. #include "CCustomListBox.h"
  10.  
  11. //----------------------------------------------------------------------------
  12.  
  13. class CMyCustomListBox : public CCustomListBox {
  14.  
  15.   public:
  16.       enum {
  17.           classID = 'mlst'
  18.       } ;
  19.         
  20.     static CMyCustomListBox*    CreateFromStream(LStream *inStream);
  21.  
  22.     CMyCustomListBox (LStream *inStream);
  23.     
  24.   protected:
  25.     virtual void        DrawElementSelf (const Rect *lRect, const void *lElement, const short lDataLen) ;
  26.  
  27. } ;
  28.  
  29. //----------------------------------------------------------------------------
  30.